#pragma once
#include <cstdint>
#include <cstring>
#include <string>
#include "XnccType.h"
class OnTestMsg
{
  public:
    std::string     toStr();
    void            init(const int num);
    inline uint32_t len()
    {
        return static_cast<uint32_t>(strlen(data_));
    }

  public:
    char data_[512] = {0};
};

class NewTestMsg
{
  public:
    std::string     toStr();
    void            init(const int num);
    inline uint32_t len()
    {
        return static_cast<uint32_t>(strlen(data_));
    }

  public:
    char data_[512] = {0};
};

TYPE_MESSAGE_ID_BIND(OnTestMsg, 1000)

TYPE_MESSAGE_ID_BIND(NewTestMsg, 1001)